home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Games / Xconq 7.0d16 / Xconq 7.0d16 src / mac / macimf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-18  |  1.4 KB  |  61 lines  |  [TEXT/KAHL]

  1. /* Copyright (c) 1992  Stanley T. Shebs. */
  2. /* This program may be used, copied, modified, and redistributed freely */
  3. /* for noncommercial purposes, so long as this notice remains intact. */
  4.  
  5. #ifndef THINK_C
  6. #include <Types.h>
  7. #include <Quickdraw.h>
  8. #endif
  9.  
  10. /* (should try to share basic stuff with X code) */
  11.  
  12. #define MAXIMSIZES 4
  13.  
  14. /* An image family is like a finder icon family, but allows multiple kinds of images -
  15.    icon, pict, pattern, plus an arbitrary set of sizes. */
  16.  
  17. typedef struct a_image {
  18.     /* These slots are all generic. */
  19.     int w, h;
  20.     int minw, minh;
  21.     int maxw, maxh;
  22.     int istile;
  23.     char *embedname;
  24.     int embedx, embedy;
  25.     int embedw, embedh;
  26.     /* The following slots are all Mac-specific. */
  27.     Handle monosicn;
  28.     Handle masksicn;
  29.     Handle monoicon;
  30.     Handle colricon;
  31.     Handle maskicon;
  32.     PicHandle monopict;
  33.     PicHandle colrpict;
  34.     PicHandle maskpict;
  35.     PicHandle groupmonopict;
  36.     PicHandle groupcolrpict;
  37.     PicHandle groupmaskpict;
  38.     int groupmonox, groupmonoy;
  39.     int groupcolrx, groupcolry;
  40.     int groupmaskx, groupmasky;
  41.     int patdefined;
  42.     char pat[8];
  43.     PixPatHandle colrpat;
  44.     /* Temp slots */
  45. } Image;
  46.  
  47. typedef struct a_image_family {
  48.     char *name;
  49.     int ersatz;                    /* true if this image was a made-up substitute */
  50.     int numsizes;
  51.     Image images[MAXIMSIZES];
  52. } ImageFamily;
  53.  
  54. typedef struct a_image_color {
  55.     char *name;
  56.     short r, g, b;
  57. } ImageColor;
  58.  
  59. Image *get_img();
  60. Image *best_image();
  61.